package com.deer.wms.ware.task.dao;

import com.deer.wms.project.root.core.mapper.Mapper;
import com.deer.wms.project.root.mapper.SuperMapper;
import com.deer.wms.ware.task.model.Wave.WaveDetail;
import com.deer.wms.ware.task.model.Wave.WaveDetailCriteria;
import com.deer.wms.ware.task.model.Wave.WaveDetailDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wei
 */
public interface WaveDetailMapper extends SuperMapper<WaveDetail> {
    /**
     * 按条件查询波次明细
     * @param criteria 查询条件
     * @return List<WaveDetailDto>
     */
    List<WaveDetailDto> findList(WaveDetailCriteria criteria);

    void deleteByWaveMasterCode(WaveDetailCriteria criteria);

    /**
     * 根据波次ID查询
     * @param waveId  波次ID
     * @return List<WaveDetail>
     */
    List<WaveDetail> getByMasterId(@Param("waveId") Integer waveId);
}